{% load cms_tags sekizai_tags %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" href="//img.ztm.me/css/amazeui.min.css">
<link rel="stylesheet" href="//img.ztm.me/css/wap.css">
<title>{% placeholder "TITLE" %}{% block title %}{% endblock %}</title>
{% block head_quote %}{% endblock %}
{% render_block "css" %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113208908-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-113208908-1');
</script>
<script type="text/javascript" src="//libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
{% if jssdk_signature %}
<script type="text/javascript">
// var ua = navigator.userAgent.toLowerCase();
// alert(ua);
  wx.config({
  	debug: false,
  	appId: '{{jssdk_signature.appid}}',
    timestamp: '{{jssdk_signature.timestamp}}',
  	nonceStr: '{{jssdk_signature.nonce}}',
  	signature: '{{jssdk_signature.signature}}',
  	jsApiList: [
  		'checkJsApi',
  		'onMenuShareTimeline',
  		'onMenuShareAppMessage',
  		'onMenuShareQQ',
  		'onMenuShareWeibo',
  		'hideMenuItems',
  		'showMenuItems',
  		// 'hideAllNonBaseMenuItem',
  		// 'showAllNonBaseMenuItem',
  		// 'translateVoice',
  		// 'startRecord',
  		// 'stopRecord',
  		// 'onRecordEnd',
  		// 'playVoice',
  		// 'pauseVoice',
  		// 'stopVoice',
  		// 'uploadVoice',
  		// 'downloadVoice',
  		// 'chooseImage',
  		// 'previewImage',
  		// 'uploadImage',
  		// 'downloadImage',
  		// 'getNetworkType',
  		// 'openLocation',
  		// 'getLocation',
  		// 'hideOptionMen',
  		// 'showOptionMen',
  		// 'scanQRCode',
  		// 'chooseWXPay',
  		// 'openProductSpecificView',
  		// 'addCard',
  		// 'chooseCard',
  		// 'openCard',
      'closeWindow'
  	]
  });
  // wx.ready(function () {
  // 	document.querySelector('#closeWindowButton').onclick = function () {
  //     wx.closeWindow();
  //   };
  // });
</script>
{% endif %}

<!--自定义CSS&Javascript代码片段begin-->
{% placeholder "CUSTOM_CSS_JS" %}
{% block custom_css_js %}{% endblock %}
<!--自定义CSS&Javascript代码片段end-->
</head>
<body>
{% placeholder "BASE_CONTENT" %}
{% block base_content %}{% endblock %}
{% render_block "js" %}
<script src="//img.ztm.me/js/amazeui.min.js"></script>
{% placeholder "FOOTER_JS" %}
{% block footer_js %}{% endblock %}
</body>
</html>
